package login;

import dbConnection.DbManage;

public class StudentLoginBean
{
    private String username;
    private String password;
    
    public String getUsername()
    {
        return username;
    }

    public void setUsername(String username)
    {
        this.username = username;
        System.out.println(username+"'e set ettim");
    }

    public String getPassword()
    {
        return password;
    }

    public void setPassword(String password)
    {
        this.password = password;
        System.out.println(password+"'e set ettim");
    }

    public String isRegistered()
    {
	System.out.println(username+"'e set ettim");
	System.out.println(password+"'e set ettim");
	DbManage dbManage = new DbManage();
	if (dbManage.isRegisteredStudent(username, password))
	{
	    return "StudentMainPage.xhtml";
	}
	else
	{
	    return "MainPage.xhtml";
	}
    }
}
